
# 导包
import requests
# 调用方法发送请求
# resp = requests.get(url='http://127.0.0.1/Home/Goods/search.html?q=iphone')
resp = requests.get(url='http://127.0.0.1/Home/Goods/search.html',params={'q':'iphone'})
# 打印响应内容
print(resp.text)